﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyGrouping.UrlTree
{
    public class UrlNode
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private UrlNode parent;

        internal UrlNode Parent
        {
            get { return parent; }
            set { parent = value; }
        }


        public UrlNode(string _name)
        {
            name = _name;
            parent = null;
        }

        public virtual bool IsLeaf()
        {
            return false;
        }

        public virtual bool IsSingleDad()
        {
            return false;
        }

        public virtual bool IsSingleAncestor()
        {
            return false;
        }
    }
}
